'use strict';

angular.module('hackathonApp')
  .factory('ProviderService', function ProviderService($resource) {
      return $resource("/api/providers/:id",
      {
          id: "@provnum"
      },
      {
          query: {
              method: "GET",
              //isArray: true
          },
          get: {
              method: "GET"
          },
          update: {
              method: "PUT"
          }
      });
  });
